package com.mai.erp.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mai.erp.domain.Process;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author wang
 * @description 针对表【process】的数据库操作Service
 * @createDate 2025-06-16 10:21:26
 */
public interface ProcessService extends IService<Process> {

    default Process getByWorkStationIdAndProductId(Integer workStationId, Integer productId) {
        return this.getOne(new LambdaQueryWrapper<Process>()
                .eq(Process::getWsid, workStationId)
                .eq(Process::getPid, productId)
            );
    }
}
